package project.shared.player;

import java.io.Serializable;

public class Player implements Serializable {

	/**
	 * Self-explanatory
	 */
	private static final long serialVersionUID = 1L;
	
	/** Mängija ID. */
	public int playerId;

	/** Mängija nimi. */
	public String name;

	/** Mängu ID. */
	public int gameId;

	/** Boolean muutuja, mis näitab, kas mängija on disconnectinud. */
	public boolean disconnected = false;
	
	public Player(String name, int gameId, int playerId) {
		this.name = name;
		this.gameId = gameId;
		this.playerId = playerId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getGameId() {
		return gameId;
	}

	public void setGameId(int gameId) {
		this.gameId = gameId;
	}

	public int getPlayerId() {
		return playerId;
	}

	public void setPlayerId(int playerId) {
		this.playerId = playerId;
	}

}
